package com.ems.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ems.vo.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * PCS数据
 * </p>
 *
 * @author WuZH
 * @since 2024-04-23
 */
@Data
@TableName ( "pcs_info" )
@ApiModel ( value = "PcsEntity对象", description = "PCS数据" )
public class PcsEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "工作状态: 0x6057 【停机，待机，运行，故障】	停机：全 0，表示停机； 开机中：Bit0 为 1，Bit2 为 0；待机：Bit0、Bit2 都为 1；（0 功率指令） 运行：Bit0、Bit3 都为 1 或 Bit0、Bit8 都为 1；（离网使能且设备在运行状态，判定为离网运行）故障：Bit6 为 1；" )
    @TableField ( "workStatus" )
    private Integer workStatus;

    @ApiModelProperty ( "输出 AB 线电压" )
    @TableField ( "outABVoltage" )
    private String outABVoltage;

    @ApiModelProperty ( "输出 BC 线电压" )
    @TableField ( "outBCVoltage" )
    private String outBCVoltage;

    @ApiModelProperty ( "输出 AC 线电压" )
    @TableField ( "outACVoltage" )
    private String outACVoltage;

    @ApiModelProperty ( "A相电压" )
    @TableField ( "aVoltage" )
    private String aVoltage;

    @ApiModelProperty ( "B相电压" )
    @TableField ( "bVoltage" )
    private String bVoltage;

    @ApiModelProperty ( "C相电压" )
    @TableField ( "cVoltage" )
    private String cVoltage;

    @ApiModelProperty ( "A相电流" )
    @TableField ( "aCurrent" )
    private String aCurrent;

    @ApiModelProperty ( "B相电流" )
    @TableField ( "bCurrent" )
    private String bCurrent;

    @ApiModelProperty ( "C相电流" )
    @TableField ( "cCurrent" )
    private String cCurrent;

    @ApiModelProperty ( "电网频率" )
    @TableField ( "powerRate" )
    private String powerRate;

    @ApiModelProperty ( "当前电网相序" )
    @TableField ( "powerSequence" )
    private String powerSequence;

    @ApiModelProperty ( "PCS降额系数" )
    @TableField ( "pcsDropRatio" )
    private String pcsDropRatio;

    @ApiModelProperty ( "PCS 降额标志: 0：正常；1：IGBT 过温降额，2，环境温度降额，3：IGBT、环境温度都降额" )
    @TableField ( "pcsDropFlag" )
    private Integer pcsDropFlag;

    @ApiModelProperty ( "交流 A 相有功功率" )
    @TableField ( "aActivePower" )
    private String aActivePower;

    @ApiModelProperty ( "交流 B 相有功功率" )
    @TableField ( "bActivePower" )
    private String bActivePower;

    @ApiModelProperty ( "交流 C 相有功功率" )
    @TableField ( "cActivePower" )
    private String cActivePower;

    @ApiModelProperty ( "交流 A 相视在功率" )
    @TableField ( "aApparentPower" )
    private String aApparentPower;

    @ApiModelProperty ( "交流 B 相视在功率" )
    @TableField ( "bApparentPower" )
    private String bApparentPower;

    @ApiModelProperty ( "交流 C 相视在功率" )
    @TableField ( "cApparentPower" )
    private String cApparentPower;

    @ApiModelProperty ( "交流 A 相无功功率" )
    @TableField ( "aReactivePower" )
    private String aReactivePower;

    @ApiModelProperty ( "交流 B 相无功功率" )
    @TableField ( "bReactivePower" )
    private String bReactivePower;

    @ApiModelProperty ( "交流 C 相无功功率" )
    @TableField ( "cReactivePower" )
    private String cReactivePower;

    @ApiModelProperty ( "交流输出总有功功率" )
    @TableField ( "acTotalActivePower" )
    private String acTotalActivePower;

    @ApiModelProperty ( "交流输出总无功功率" )
    @TableField ( "acTotalReactivePower" )
    private String acTotalReactivePower;

    @ApiModelProperty ( "交流输出总视在功率" )
    @TableField ( "acTotalApparentPower" )
    private String acTotalApparentPower;

    @ApiModelProperty ( "交流功率因数" )
    @TableField ( "aCPowerFactor" )
    private String aCPowerFactor;

    @ApiModelProperty ( "总母线电压" )
    @TableField ( "totalBusVoltage" )
    private String totalBusVoltage;

    @ApiModelProperty ( "正母线电压" )
    @TableField ( "positiveBusVoltage" )
    private String positiveBusVoltage;

    @ApiModelProperty ( "负母线电压" )
    @TableField ( "negativeBusVoltage" )
    private String negativeBusVoltage;

    @ApiModelProperty ( "电池电流" )
    @TableField ( "batteryCurrent" )
    private String batteryCurrent;

    @ApiModelProperty ( "直流侧：电池电压" )
    @TableField ( "batteryVoltage" )
    private String batteryVoltage;

    @ApiModelProperty ( "直流侧：直流功率" )
    @TableField ( "dcPower" )
    private String dcPower;

    @ApiModelProperty ( "直流侧：直流总电流" )
    @TableField ( "dcTotalCurrent" )
    private String dcTotalCurrent;

    @ApiModelProperty ( "IGBT 温度" )
    @TableField ( "IGBTTemp" )
    private String iGBTTemp;

    @ApiModelProperty ( "环境温度" )
    @TableField ( "ambientTemp" )
    private String ambientTemp;

    @ApiModelProperty ( "电感温度" )
    @TableField ( "inductanceTemp" )
    private String inductanceTemp;

    @ApiModelProperty ( "当前实际充放电工作模式:1：交流电流源模式（恒流、恒功率），0：直流电压源模式（ACDC 源使用）" )
    @TableField ( "actualWorkModel" )
    private Integer actualWorkModel;

    @ApiModelProperty ( "A 相功率因数" )
    @TableField ( "aPowerFactor" )
    private String aPowerFactor;

    @ApiModelProperty ( "B 相功率因数" )
    @TableField ( "bPowerFactor" )
    private String bPowerFactor;

    @ApiModelProperty ( "C 相功率因数" )
    @TableField ( "cPowerFactor" )
    private String cPowerFactor;

    @ApiModelProperty ( "直流历史充电量" )
    @TableField ( "dcHistoryChargeCapacity" )
    private String dcHistoryChargeCapacity;

    @ApiModelProperty ( "直流日充电量，当日充电量" )
    @TableField ( "dcDayChargeCapacity" )
    private String dcDayChargeCapacity;

    @ApiModelProperty ( "直流历史放电量" )
    @TableField ( "dcHistoryDischargeCapacity" )
    private String dcHistoryDischargeCapacity;

    @ApiModelProperty ( "直流日放电量，当日放电量" )
    @TableField ( "daDayDischargeCapacity" )
    private String daDayDischargeCapacity;

    @ApiModelProperty ( "交流历史充电量" )
    @TableField ( "acHistoryChargeCapacity" )
    private String acHistoryChargeCapacity;

    @ApiModelProperty ( "交流日充电量" )
    @TableField ( "acDayChargeCapacity" )
    private String acDayChargeCapacity;

    @ApiModelProperty ( "交流历史放电量" )
    @TableField ( "acHistoryDischargeCapacity" )
    private String acHistoryDischargeCapacity;

    @ApiModelProperty ( "交流日放电量" )
    @TableField ( "acDayDischargeCapacity" )
    private String acDayDischargeCapacity;


    @ApiModelProperty ("电感A相电流")
    @TableField ( "inductanceACurrent" )
    private String inductanceACurrent;

    @ApiModelProperty ("电感B相电流")
    @TableField ( "inductanceBCurrent" )
    private String inductanceBCurrent;

    @ApiModelProperty ("电感C相电流")
    @TableField ( "inductanceCCurrent" )
    private String inductanceCCurrent;

    @ApiModelProperty ( "子设备地址" )
    @TableField ( "deviceAddress" )
    private String deviceAddress;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "isUsed" )
    private Integer isUsed;


}
